﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace Entity.Migrations
{
    /// <inheritdoc />
    public partial class Init : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterDatabase()
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.CreateTable(
                name: "AA001",
                columns: table => new
                {
                    A01 = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
                    A002 = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    A003 = table.Column<int>(type: "int", nullable: false),
                    A004 = table.Column<DateTime>(type: "datetime(6)", nullable: false),
                    A005 = table.Column<string>(type: "longtext", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    A006 = table.Column<string>(type: "longtext", nullable: true)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    A007 = table.Column<bool>(type: "tinyint(1)", nullable: false),
                    A008 = table.Column<DateTime>(type: "datetime(6)", nullable: false),
                    A02 = table.Column<bool>(type: "tinyint(1)", nullable: false),
                    A03 = table.Column<bool>(type: "tinyint(1)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_AA001", x => x.A01);
                })
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.InsertData(
                table: "AA001",
                columns: new[] { "A01", "A003", "A004", "A005", "A008", "A006", "A03", "A02", "A002", "A007" },
                values: new object[,]
                {
                    { new Guid("35f43ec8-e1de-4913-b69d-31284a6c1c27"), 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "11111111111", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, false, false, "zhangsan", false },
                    { new Guid("a65f9a16-b424-44d3-96e4-369cd01bd203"), 20, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "22222222222", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, false, false, "LiSi", false },
                    { new Guid("c49a60f1-8ec3-4181-972f-30341462c829"), 21, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "33333333333", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, false, false, "WangWu", false }
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "AA001");
        }
    }
}
